#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   8.PY
@Time    :   2020/03/15 19:27:58
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here
# 设计一个数据结构，用来存放10个员工的信息并初始化，每个员工信息包括：工号，姓名，工龄，工资；  将这10个员工，按照工资从高到低打印输出;

def takeforth(elem):
    return elem[3]

stuff = [['001','jarvis1',12,14000],['002','jarvis2',7,10000],['003','jarvis3',15,33000],['004','jarvis4',14,20000],['005','jarvis5',17,22000],['006','jarvis6',8,12000],['007','jarvis7',5,9300],['008','jarvis8',13,11000],['009','jarvis9',2,7800],['010','jarvisX',8,18000]]
print('工号\t姓名\t年龄\t工资')

stuff.sort(key=takeforth,reverse= True)
for elem in stuff:
    print('{0}\t{1}\t {2}\t{3}'.format(elem[0],elem[1],elem[2],elem[3]))